<?php
	if ($act == 'add') {
		if (isset($_POST['page_id'])) $page_id = $_POST['page_id'];	else $page_id = 0;
		if (isset($_POST['parent_id'])) $parent_id = $_POST['parent_id']; else $parent_id = 0;
		if (isset($_POST['parent_type'])) $parent_type = $_POST['parent_type']; else $parent_type = "";		
		if (isset($_POST['parent_name'])) $parent_name = $_POST['parent_name']; else $parent_name = "";		
		if (isset($_POST['reit_value'])) $reit_value = $_POST['reit_value']; else $reit_value = 0;
		if (isset($_POST['reit_name'])) $reit_name = $_POST['reit_name']; else $reit_name = "";
		if (isset($_POST['reit_check'])) $reit_check = $_POST['reit_check']; else $reit_check = 0;
		$res = $reitingclass->add_reiting($page_id, $parent_id, $parent_type, $parent_name, $reit_value, $reit_name, $reit_check);
		if ($res != 0) $err->AddError($res, "reiting");
	}
?>